﻿namespace Neovolve.Extensibility.ReSharper
{
    using System;
    using JetBrains.ReSharper.Daemon;

    /// <summary>
    /// The <see cref="ConvertToClrTypeHighlighting"/>
    ///   class is used to highlight a type in code that can be converted to a clr types.
    /// </summary>
    [ConfigurableSeverityHighlighting(Name, ShowToolTipInStatusBar = true, OverlapResolve = OverlapResolveKind.UNRESOLVED_ERROR)]
    [CLSCompliant(false)]
    public class ConvertToClrTypeHighlighting : ConvertTypeHighlighting
    {
        /// <summary>
        /// Defines the name of the highlighting.
        /// </summary>
        internal const String Name = "Neovolve.ConvertToClrType";

        /// <summary>
        /// Initializes a new instance of the <see cref="ConvertToClrTypeHighlighting"/> class.
        /// </summary>
        /// <param name="bulbItem">
        /// The bulb item.
        /// </param>
        public ConvertToClrTypeHighlighting(IConvertTypeBulbItem bulbItem)
            : base(Name, bulbItem)
        {
        }

        /// <summary>
        /// Gets the current severity.
        /// </summary>
        /// <value>
        /// The current severity.
        /// </value>
        public static Severity CurrentSeverity
        {
            get
            {
                return GetSeverity(Name);
            }
        }
    }
}